<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>foodAddictive.jsp</title>
    <style type="text/css">
		.save_food{
			text-align: center;
		}
		.save_food form input{
			margin-top: 10px;
		}
	</style>
  </head>
  
  <body>
    <p align="center">添加店铺食品</p>
    <div class="save_food">
    		<form action="${pageContext.request.contextPath }/admin/saveFood" method="post">
	   		<div>
	   			食品名称：<input type="text" name="foodName" placeholder="请输入食品名称" style="width: 370px; ">
	   			<span>***************</span>
	   		</div>
	   		<div>
	   			食品价格：<input type="text" name="price" placeholder="请输入食品价格" style="width: 370px; ">
	   			<span>***************</span>
	   		</div>
	   		<div> 
	   			食品类别：<select name="categoryName" style="width: 370px; ">
	   						<c:forEach items="${categories}" var="c">
	   							<option value="${c.categoryName }">${c.categoryName }</option>
	   						</c:forEach>
	   					</select>
	   			
	   			<span>***************</span>
	   		</div>
	   		<div> 
	   			店铺名称：<select name="restaurantName" style="width: 370px; ">
	   						<c:forEach items="${restaurants}" var="r">
	   							<option value="${r.restaurantName }">${r.restaurantName }</option>
	   						</c:forEach>
	   					</select>
	   			<span>***************</span>
	   		</div>
	   		<input type="submit" value="提交">
	   	</form>
    </div>
  </body>
</html>
